﻿Public Class frmFilterOverview

    Private Sub btnFilter_BorderImprovement_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnFilter_BorderImprovement.Click
        Dim LDR As New TheiaLib.Imaging.GDIBitmap(pbImage.Image)
        Dim HDR As New TheiaLib.Imaging.HDRBitmap(LDR)
        LDR.UnLockBitmap()
        Dim tmpForm As New frmFilter_Scale3x(HDR)
        tmpForm.ShowDialog()
    End Sub

    Private Sub btnOpen_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOpen.Click
        If ofdOpenLDRImage.ShowDialog = Windows.Forms.DialogResult.OK Then
            pbImage.Image = New Drawing.Bitmap(ofdOpenLDRImage.FileName)
            pbImage.Width = pbImage.Image.Width
            pbImage.Height = pbImage.Image.Height
            lblFilename.Text = ofdOpenLDRImage.FileName
        End If
    End Sub

End Class